/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.hanze.web.banken;

import javax.persistence.EntityManager;

/**
 *
 * @author Herman
 */
public abstract class Rekening {
    
    private EntityManager em;
    
    public void setMerger(EntityManager em) {
        this.em = em;
    }
    
    public void merge() {
        em.merge(this);
    }
    
    public abstract int getLimiet();
    
    public abstract int getSaldo();
    
    public abstract void addSaldo(int amount);
}
